package com.example.warehouse.sys.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_notice")
public class SysNotice implements Serializable {
    /*
     * 公告ID
     */
    @ExcelProperty(value = "公告ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Long id;

    /*
     * 用户ID
     */
    @ExcelProperty(value = "用户ID",index = 1)
    @TableField(value = "user_id")
    private Long userId;
    /*
     * 发布人名字
     */
    private String name;

    /*
     * 公告标题
     */
    @ExcelProperty(value = "公告标题",index = 2)
    private String title;

    /*
     * 公告内容
     */
    @ExcelProperty(value = "公告内容",index = 3)
    private String content;

    /*
     * 显示状态 0-隐藏, 1-显示
     */
    @ExcelProperty(value = "显示状态",index = 4)
    private Integer enable;

    /*
     * 排序值
     */
    @ExcelProperty(value = "排序值",index = 5)
    private Integer sort;

    /*
     * 创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 6)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /*
     * 修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 7)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
